package com.ruoyi.pims.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售汇总对象 ry_sales_summary
 * 
 * @author ruoyi
 * @date 2025-06-18
 */
public class RySalesSummary extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 汇总ID */
    private Long summaryId;

    /** 报表名称 */
    @Excel(name = "报表名称")
    private String reportName;

    /** 时间类型(1日/2周/3月/4季/5年) */
    @Excel(name = "时间类型(1日/2周/3月/4季/5年)")
    private String timeType;

    /** 维度标志(1商品/2客户) */
    @Excel(name = "维度标志(1商品/2客户)")
    private String dimensionFlag;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    public void setSummaryId(Long summaryId) 
    {
        this.summaryId = summaryId;
    }

    public Long getSummaryId() 
    {
        return summaryId;
    }

    public void setReportName(String reportName) 
    {
        this.reportName = reportName;
    }

    public String getReportName() 
    {
        return reportName;
    }

    public void setTimeType(String timeType) 
    {
        this.timeType = timeType;
    }

    public String getTimeType() 
    {
        return timeType;
    }

    public void setDimensionFlag(String dimensionFlag) 
    {
        this.dimensionFlag = dimensionFlag;
    }

    public String getDimensionFlag() 
    {
        return dimensionFlag;
    }

    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }

    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("summaryId", getSummaryId())
            .append("reportName", getReportName())
            .append("timeType", getTimeType())
            .append("dimensionFlag", getDimensionFlag())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
